package com.jdd.modules.sdkidentifyresultpushlog.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.jdd.common.util.excel.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
/**
 * @Description: sdk识别结果
 * @Author: jdd
 * @Date:   2021-03-31
 * @Version: V1.0
 */
@Data
@TableName("sdk_identify_result_push_log")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="sdk_identify_result_push_log对象", description="sdk识别结果端丽")
public class SdkIdentifyResultPushLog {

	/**主键*/
	@TableId(type = IdType.UUID)
    @ApiModelProperty(value = "主键")
	private String id;
	/**设备ip*/
	@Excel(name = "设备ip", width = 15)
    @ApiModelProperty(value = "设备ip")
	private String ipAddr;
	/**车场名称*/
	@Excel(name = "车场名称", width = 15)
    @ApiModelProperty(value = "车场名称")
	private String parkName;
	/**车场编码*/
	@Excel(name = "车场编码", width = 15)
    @ApiModelProperty(value = "车场编码")
	private String parkCode;
	/**车牌号码*/
	@Excel(name = "车牌号码", width = 15)
    @ApiModelProperty(value = "车牌号码")
	private String license;
	/**车辆颜色*/
	@Excel(name = "车辆颜色", width = 15)
    @ApiModelProperty(value = "车辆颜色")
	private Integer color;
	/**车牌颜色序号*/
	@Excel(name = "车牌颜色序号", width = 15)
    @ApiModelProperty(value = "车牌颜色序号")
	private Integer nColor;
	/**设备唯一序列号*/
	@Excel(name = "设备唯一序列号", width = 15)
	@ApiModelProperty(value = "设备唯一序列号")
	private String serialNo;
	@ApiModelProperty(value = "车辆类型ID")
	@TableField(exist = false)
	private String carTypeId;
	@ApiModelProperty(value = "车辆类型名称")
	@TableField(exist = false)
	private String carTypeName;
	/**车牌类型*/
	@Excel(name = "车牌类型", width = 15)
    @ApiModelProperty(value = "车牌类型")
	private Integer nType;
	/**车牌可信度*/
	@Excel(name = "图片路径", width = 15)
    @ApiModelProperty(value = "图片路径")
	private String img;
	/**阿里云oss图片路径*/
	@Excel(name = "图片路径", width = 15)
	@ApiModelProperty(value = "图片路径")
	private String ossImg;
	/**运动方向*/
	@Excel(name = "运动方向", width = 15)
    @ApiModelProperty(value = "运动方向")
	private Integer nDirection;
	/**识别时间*/
	@Excel(name = "识别时间", width = 15)
    @ApiModelProperty(value = "识别时间")
	private Integer nTime;
	/**车的亮度*/
	@Excel(name = "车的亮度", width = 15)
    @ApiModelProperty(value = "车的亮度")
	private String nCarBright;
	/**车的颜色*/
	@Excel(name = "车的颜色", width = 15)
    @ApiModelProperty(value = "车的颜色")
	private String nCarColor;
	/**创建时间*/
	@Excel(name = "创建时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
	private Date createTime;

	@ApiModelProperty(value = "0正常入场，1预转卡，2已转卡")
    @TableField(exist = false)
    private String isTransfer;

	@ApiModelProperty(value = "入场类型：0默认，1重复入场")
    @TableField(exist = false)
    private Integer enterType;

	/**
	 * 用户微信openid
	 */
	@TableField(exist = false)
	private String openid;

	/**
	 * 车牌图片
	 */
	@TableField(exist = false)
	private String plateNoImg;
	/**
	 * 全免券标识
	 */
	@TableField(exist = false)
	private boolean freeAllCoupon;
}
